package com.example.rpsm_property.service;

import com.example.rpsm_property.pojo.PageResult;
import com.example.rpsm_property.pojo.User;
import org.springframework.dao.DuplicateKeyException;

public interface UserService {
    int insertUser(User user) throws
            DuplicateKeyException,Exception;

    public PageResult<User> pageOfOwner(int current, int size) ;

    int changeUserStatus(User user);
    User queryById(int id);
}
